package entity;

import java.util.Random;

/**
 * @author zhu
 * @date 2024-03-26
 */
public class Student {
    private String name;
    private int age;
    private Double weight;
    private Double score;

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Student(Double weight) {
        this.weight = weight;
    }

    public Student() {
    }

    public Student(String name, int age, Double weight) {
        this.name = name;
        this.age = age;
        this.weight = weight;
    }

    public Student(String name, Double score) {
        this.name = name;
        this.score = score;
    }

    private int study(String address,Double score){
        return new Random().nextInt(101);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }
    public void show(Student student){
        System.out.println("学生信息：");
        System.out.println("姓名：" + student.name);
        System.out.println("年龄：" + student.age);
        System.out.println("体重：" + student.weight);
    }
}
